package org.emavaj.sanguosha.model.card.equipment.horse;


import org.emavaj.sanguosha.model.card.AbstractCard;
import org.emavaj.sanguosha.model.card.equipment.AbstractEquipmentCard;
import org.emavaj.sanguosha.model.exception.SGSException;
import org.emavaj.sanguosha.model.vo.CardVO;
import org.emavaj.sanguosha.view.gameview.GameFrame;

/**
 * User: DIZEM Time: 11-4-1 下午9:48
 * 
 * eMavaj updated 20120916
 */
public abstract class AbstractHorseCard extends AbstractEquipmentCard {

	protected int attackRange;
	
	protected int defenseRange;

	@Override
	public void fromCardVO(CardVO cardVO) {
		super.fromCardVO(cardVO);
		this.attackRange = cardVO.getAttRange();
		this.defenseRange = cardVO.getDefRange();
	}

	@Override
	public void runCardEffect(GameFrame client) {
		// TODO Auto-generated method stub
	}

	@Override
	public boolean needsFeedBack() {
		return false;
	}

	@Override
	public boolean isFeedBackWork(AbstractCard card) {
		throw new SGSException("不需要反馈的卡牌被期望反馈");
	}
}
